import request from '@/utils/request'

export default {

  // 创建订单
  createOrder(cid) {
    return request({
      url: `/orderservice/order/createOrter/${cid}`,
      method: 'post'
    })
  },
  // 根据id获取订单
  getById(cid) {
    return request({
      url: `/orderservice/order/getOrderById/${cid}`,
      method: 'post'
    })
  },
  // 生成微信支付二维码
  createNative(cid) {
    return request({
      url: `/orderservice/paylog/createNative/${cid}`,
      method: 'get'
    })
  },
  // 根据id获取订单支付状态
  queryPayStatus(cid) {
    return request({
      url: `/orderservice/paylog/queryPayStatus/${cid}`,
      method: 'get'
    })
  }
}
